//
//  GoodLinkListView.h
//  danpin
//
//  Created by chuangjia on 10/7/15.
//  Copyright (c) 2015 chuangjia. All rights reserved.
//

#import <UIKit/UIKit.h>
@class GoodLinkListView;

@protocol GoodLinkListViewDelegate <NSObject>
- (void)linkListView:(GoodLinkListView *)popListView didSelectedIndex:(NSInteger)anIndex;
- (void)linkListViewDidCancel;
@end

@interface GoodLinkListView : UIView <UITableViewDataSource, UITableViewDelegate>
{
    UITableView *_tableView;
    NSString *_title;
    NSArray *_options;
}

@property (nonatomic, assign) id<GoodLinkListViewDelegate> delegate;

// The options is a NSArray, contain some NSDictionaries, the NSDictionary contain 2 keys, one is "img", another is "text".
- (id)initWithTitle:(NSString *)aTitle options:(NSArray *)aOptions;
// If animated is YES, PopListView will be appeared with FadeIn effect.
- (void)showInView:(UIView *)aView animated:(BOOL)animated;
@end

